﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="new_peic.aspx.cs" Inherits="Catering.new_peic" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>新配餐-配餐人群设置</title>
    <link rel="stylesheet" type="text/css" href="../../Style/head.css" />
    <link rel="stylesheet" type="text/css" href="../../Style/center.css" />
    <link href="../../Style/zhezhao.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../Style/xxk.js" type="text/javascript"></script>
    <script src="../../Scripts/date.js" type="text/javascript"></script>
    <script src="../../Scripts/other.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../Style/zhezhao.js"></script>
    <style type="text/css">
        .peic_type { width: 100%; }
        .peic_type li { float: left; height: 30px; line-height: 30px; margin-left: 3px; }
        .peic_type li td { margin: 0px; padding: 0px; }
        .table_css TD{padding:4px 0px;}
        .grxx_table{width:600px; margin:20px 0px; padding:0px;}
        .grxx_table td{height:30px; line-height:30px;}
        .grxx_table td label{padding:0px 10px 0px 5px; line-height:22px;}
        .grxx_table td input{ vertical-align:middle;}
        .inputtxt A:hover{ width:155px; height:22px; line-height:22px; padding:0px; margin:0px;}
        .table_title{font-weight:bold; color:#3F3F3F; font-size:13px;}
    </style>
    <script language="javascript" type="text/javascript">
        var Xuhao = 0;
        $(document).ready(function () {

            //增加按钮开始
            $("#AddInfo").click(function () {
                var SexOption = '<%=GetSexOption()%>';
                var AgeOption = '<%=GetAgeOption()%>';
                var LaborOption = '<%=GelLaborGradeOption()%>';

                Xuhao = Xuhao + 1;
                var i = Math.floor(Math.random() * 1000 + 1);
                $("#Tb_Pic_Group").append("<tr id=\"Add_" + i + "\">"
                + "<td name=\"Add\">" + Xuhao + "</td>" //序号
                + "<td><select name=\"sex\">" + SexOption + "</select></td>" //性别
                + "<td><select name=\"Age\">" + AgeOption + "</select></td>" //年龄
                + "<td><select name='Labor' style=\"width:95%\">" + LaborOption + "</select></td>" //劳动强度
                + "<td> <input type=\"text\" style=\"width:50%\" id=\"Renshu\" name=\"Renshu\" value=\"\" /></td>" + //人数
                "<td><img alt=\"\" id=\"del\" name=\"del\" onclick=\"Del_tr('" + i + "')\" style=\"cursor:pointer;\" src=\"../../Images/trash.gif\"/></td></tr>"); //删除
            });

            $("#Dr_zuoye").change(getShuoMingStr);
            getShuoMingStr();
        });

        //群体配餐加权平均值
        function AVG_But_Click() {
            var title = $("#Txt_Pic_name").val();
            if (title == "") {
                alert("请输入配餐群体名称！");
                return;
            }
            var strTypes = "";
            $("#Tbody_Pic_Group tr").each(function () {
                strTypes += $("#Dr_zuoye").val() + //使用人群
                        "|" + $(this).find("[name='sex']").val() + //性别
                        "|" + $(this).find("[name='Age']").val() + //年龄段
                        "|" + $(this).find("[name='Labor']").val() + //劳动级别
                        "|" + $(this).find("[name='Renshu']").val() + ","; //人数
            });

            if (strTypes == "")
                return;

            $.ajax({
                type: "Post",
                url: "new_peic.aspx/GetJiaQuanPJ",
                data: "{'strTypes':'" + strTypes + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    if (data.d[0] == "OK") {
                        var title = new Array("能量（千卡）", "能量（千焦）", "蛋白质（克）", "脂肪(千卡)", "碳水化合物(克)", "膳食纤维（千卡）", "维生素A（毫克）", "维生素B1（微克）", "维生素B2（毫克）", "维生素C（毫克）", "维生素E（毫克）", " 视黄醇当量（毫克）", "尼克酸(毫克)", "胡萝卜素(mg)", "钙", "磷", "钾", "钠", "镁", "铁", "锌", "硒", "铜", "锰", "碘");
                        var strhtml = "";
                        for (var i = 1; i <= 25; i++) {
                            strhtml += "<tr onmouseover=\"this.style.background='#F4F4F4'\" onmouseout=\"this.style.background='#FFFFFF'\"><td class=\"xh_td\">" + title[i - 1] + "</td>";
                            strhtml += "<td align='center'>" + data.d[i] + "</td>";
                            strhtml += "<td align='center'>" + fomatFloat((parseInt(data.d[i].toString()) / 10 * 3).toString(), 2) + "</td>";
                            strhtml += "<td align='center'>" + fomatFloat((parseInt(data.d[i].toString()) / 10 * 4).toString(), 2) + "</td>";
                            strhtml += "<td align='center'>" + fomatFloat((parseInt(data.d[i].toString()) / 10 * 3).toString(), 2) + "</td>";
                            //strhtml += "<td align='center'>" + fomatFloat((parseInt(data.d[i].toString()) / 10 * 4).toString(), 2) + "</td></tr>";
                            strhtml += "</tr>";
                        }

                        $("#NutritionalList").html(strhtml);
                        $("#But_Pic_Next").removeAttr("disabled");

                        divshow("divmain2", "divup2");
                    }
                    else {
                        alert("存在无摄入量标准的类别组合！");
                    }
                }
            });
        }

        //个人配餐加权平均值
        function GerenSRL_Click() {
            var strTypes = $("#dr_r_type").val() + //适用人群
                           "|" + $(":radio:checked[name='Drop_Sex']").val()+//性别
                           "|" + $("#Drop_Age").val()+//年龄段
                           "|" + $(":radio:checked[name='rd_laodong']").val(); //劳动级别
            
            $.ajax({
                type: "Post",
                url: "new_peic.aspx/GetJiaQuanPJByGeRen",
                data: "{'strTypes':'" + strTypes + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    if (data.d[0] == "OK") {
                        var title = new Array("能量（千卡）", "能量（千焦）", "蛋白质（克）", "脂肪(千卡)", "碳水化合物(克)", "膳食纤维（千卡）", "维生素A（毫克）", "维生素B1（微克）", "维生素B2（毫克）", "维生素C（毫克）", "维生素E（毫克）", " 视黄醇当量（毫克）", "尼克酸(毫克)", "胡萝卜素(mg)", "钙", "磷", "钾", "钠", "镁", "铁", "锌", "硒", "铜", "锰", "碘");
                        var strhtml = "";
                        for (var i = 1; i <= 25; i++) {
                            strhtml += "<tr onmouseover=\"this.style.background='#F4F4F4'\" onmouseout=\"this.style.background='#FFFFFF'\"><td class=\"xh_td\">" + title[i - 1] + "</td>";
                            strhtml += "<td align='center'>" + data.d[i] + "</td>";
                            strhtml += "<td align='center'>" + fomatFloat((parseInt(data.d[i].toString()) / 10 * 3).toString(), 2) + "</td>";
                            strhtml += "<td align='center'>" + fomatFloat((parseInt(data.d[i].toString()) / 10 * 4).toString(), 2) + "</td>";
                            strhtml += "<td align='center'>" + fomatFloat((parseInt(data.d[i].toString()) / 10 * 3).toString(), 2) + "</td>";
                            strhtml += "<td align='center'>" + fomatFloat((parseInt(data.d[i].toString()) / 10 * 4).toString(), 2) + "</td></tr>";
                        }

                        $("#NutritionalList").html(strhtml);
                        divshow("divmain2", "divup2");
                    }
                    else {
                        alert("存在无摄入量标准的类别组合！");
                    }
                }
            });
        }


        function fomatFloat(src, pos) {
            return Math.round(src * Math.pow(10, pos)) / Math.pow(10, pos);
        }


        function Group_Next_But_Click_Js() {
            var title = $("#Txt_Pic_name").val();
            if (title == "") {
                alert("请输入配餐群体名称！");
                return;
            }
            if ($("#But_Pic_Next").is("[disabled]")) {
                alert("请进行加权平均计算！");
                return;
            }

            $("#But_Pic_Next").click();
        }

        function Sigen_Next_But_Click_Js() {
            $("#Button1").click();
        }
        function menu_item(n) {
            $(".a_hover").removeClass("a_hover");
            $("#item_" + n).addClass("a_hover");
        }
        function Del_tr(n) {
            $("#Add_" + n).remove();
        }
    </script>
    <script type="text/javascript" language="javascript">
//        function cc(e) {
//            getShuoMingStr();
//            var cen = $GetControl("pop");
//            var ttop = e.offsetTop;                     //这里得到指定控件离父容器控件顶部的距离 px
//            var tleft = e.offsetLeft;                   //这里得到指定控件离父容器控件左边的距离 px
//            var h = e.clientHeight;                  //这里得到指定控件的高度
//            var w = e.clientWidth;                  //这里得到指定控件的宽度
//            var originalE = e;

//            //这里通过 e = e.offsetParent 操作，一直将e变成document对象，既最高级别的容器；
//            //这里ttop 和 tleft 就得到了指定控件距离网页 顶部 和 左部 的距离；
//            while (e = e.offsetParent) { tleft += e.offsetLeft; }
//            cen.style.display = "";  //层显示
//            cen.style.top = ttop + 116;
//            cen.style.left = tleft + w - cen.clientWidth - 117; //上面的代码都是将悬浮层调整到指定控件的正下方
//        }

//        function out() { var cen = $GetControl("pop"); cen.style.display = "none"; }
        function getShuoMingStr() {
            var sel = $("#Dr_zuoye").val();
            $.ajax({
                type: "Post",
                url: "new_peic.aspx/GetShuoMingStr",
                data: "{'id':'" + sel + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    var cen = $GetControl("pop");
                    cen.innerText = data.d[0];
                }
            });
        }
    </script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#tb_hegth").focusout(function () {
                var sg = $(this).val();
                var tz = $("#tb_weight").val();
                if (isNaN(sg)) {
                    alert("请输入正确数字！");
                    return;
                }
                if (!isNaN(tz)) {
                    var bmi = parseFloat(tz) * 10000 / parseFloat(sg * sg)
                    bmi = changeTwoDecimal_f(bmi)
                    //$("#BMI").val(bmi);
                    document.getElementById("BMI").innerHTML = bmi;
                    SetTiZhi(bmi);
                }

            });
            $("#tb_weight").focusout(function () {
                var sg = $("#tb_hegth").val();
                var tz = $(this).val();
                if (isNaN(tz)) {
                    alert("请输入正确数字！");
                    return;
                }
                if (!isNaN(sg)) {
                    var bmi = parseFloat(tz) * 10000 / parseFloat(sg * sg)
                    bmi = changeTwoDecimal_f(bmi)
                    //$("#BMI").val(bmi);
                    document.getElementById("BMI").innerHTML = bmi;
                    SetTiZhi(bmi);
                }
            });
        });

        function SetTiZhi(bmi) {
            var sex = $("#Drop_Sex").val();
            if (bmi <= 0) return;
            if (sex == 1) {
                if (bmi < 20) {
                    document.getElementById("tizhi").innerHTML = "过轻";
                }
                else if (bmi <= 25) {
                    document.getElementById("tizhi").innerHTML = "适中";
                }
                else if (bmi <= 30) {
                    document.getElementById("tizhi").innerHTML = "过重";
                }
                else if (bmi <= 35) {
                    document.getElementById("tizhi").innerHTML = "肥胖";
                }
                else{
                    document.getElementById("tizhi").innerHTML = "非常肥胖";
                }
            }
            else
            {
                if (bmi < 19) {
                    document.getElementById("tizhi").innerHTML = "过轻";
                }
                else if (bmi <= 24) {
                    document.getElementById("tizhi").innerHTML = "适中";
                }
                else if (bmi <= 29) {
                    document.getElementById("tizhi").innerHTML = "过重";
                }
                else if (bmi <= 34) {
                    document.getElementById("tizhi").innerHTML = "肥胖";
                }
                else {
                    document.getElementById("tizhi").innerHTML = "非常肥胖";
                }
            }
        }

        function changeTwoDecimal_f(x) {
            var f_x = parseFloat(x);
            if (isNaN(f_x)) {
                return 0;
            }
            var f_x = Math.round(x * 100) / 100;
            var s_x = f_x.toString();
            var pos_decimal = s_x.indexOf('.');
            if (pos_decimal < 0) {
                pos_decimal = s_x.length;
                s_x += '.';
            }
            while (s_x.length <= pos_decimal + 2) {
                s_x += '0';
            }
            return s_x;
        }
    </script>
</head>
<body>
    <form id="Form1" runat="server">
    <asp:HiddenField ID="HidTxt_Pic_ManMunber" runat="server" />
    <asp:HiddenField ID="HidTxt_Pic_Manold" runat="server" />
    <asp:HiddenField ID="HidTxt_Pic_WinMunber" runat="server" />
    <asp:HiddenField ID="HidTxt_Pic_Winole" runat="server" />
    <div class="nav_2">
        <div class="nav_2_1">
            <img src="../../Images/nav2_bg1.gif" /></div>
        <ul>
            <li><a href="javascript:void(0);"><span id="span_peic_1" class="lvse_border">1.配餐人群设置</span></a></li>
            <li><a href="javascript:void(0);"><span id="span_peic_2" class="feise_border">2.选择配餐日期</span></a></li>
            <li style="background: none"><a href="javascript:void(0);"><span id="span_peic_3" class="feise_border">3.生成食谱</span></a></li>
        </ul>
        <div class="nav_2_3">
            <img src="../../Images/nav2_bg2.gif" /></div>
    </div>
    <div class="table_box">
        <div class="xxk_button">
            <ul>
                <li id="item_1" class="a_hover"><a href="#" onclick="my3div(1);menu_item(1);return false;">
                    <img src="../../Images/group_blue.png" />&nbsp;&nbsp;群体配餐</a></li>
                <li id="item_2"><a href="#" onclick="my3div(2);menu_item(2);return false;">
                    <img src="../../Images/contact_blue.png" />&nbsp;&nbsp;个人配餐</a></li>
            </ul>
        </div>
        <div class="table_box02" id="div2_1" style="display: block;">
            <div class="table_box02_01" style="height:auto;">
                <h1>&nbsp;</h1><br />
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_css">
                    <tr>
                        <td class="width155" > 配餐群体名称：</td>
                        <td valign="middle">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox runat="server" ID="Txt_Pic_name" CssClass="input_bg" Style="width: 155px; height: 22px; line-height: 22px;" /></td>
                    </tr>
                    <tr>
                        <td class="width155" >配餐群体类别：</td>
                        <td valign="middle">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:DropDownList ID="Dr_zuoye" runat="server" class="select_input_bg"></asp:DropDownList>
                        </td>
                    </tr>
                    <tr style=" display:none;">
                        <td class="width155">
                            配&nbsp;&nbsp;餐&nbsp;&nbsp;餐&nbsp;&nbsp;别：
                        </td>
                        <td class="input_margin" align="left">
                            <asp:CheckBoxList runat="server" ID="CL_Pic_FoodMealType" Style="margin:0px; padding:0px;"
                                RepeatDirection="Horizontal">
                                <asp:ListItem Value="1" Selected="True">早餐</asp:ListItem>
                                <asp:ListItem Value="2" Selected="True">中餐</asp:ListItem>
                                <asp:ListItem Value="3" Selected="True">晚餐</asp:ListItem>
                                <asp:ListItem Value="4" Selected="True">夜餐</asp:ListItem>
                            </asp:CheckBoxList>
                        </td>
                    </tr>
                    <tr>
                        <td class="width155" valign="middle">
                            配餐群体特点：
                        </td>
                        <td>
                            <div id="pop" class="input_bg" style="width:630px; height:100px; line-height: 25px; margin-left:14px; overflow-y:scroll;"></div>
                        </td>
                    </tr>
                    <tr>
                        <td class="width155" valign="middle">
                            配餐群体描述：
                        </td>
                        <td style="padding:0px 0px 10px 0px;">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox runat="server" ID="Txt_Pic_Te" CssClass="input_bg" Style="width: 630px;
                                height: 40px; line-height: 25px;" />
                        </td>
                    </tr>
                    <tr style="display:none;">
                        <td class="width155" valign="middle" height="40">
                            作&nbsp;&nbsp;业&nbsp;&nbsp;区：
                        </td>
                        <td>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:DropDownList ID="Dr_Pic_Group" CssClass="select_input_bg" runat="server" OnSelectedIndexChanged="DrGroup_SelectedIndexChanged"
                                AutoPostBack="True">
                            </asp:DropDownList>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;班 组：
                            <asp:DropDownList ID="Dr_Pic_Class" CssClass="select_input_bg" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="table_box02_02">
                <h1>&nbsp;</h1>
                <table id="Tb_Pic_Group" width="100%" border="0" cellspacing="0" cellpadding="0"
                    class="top_left_table">
                    <thead>
                        <tr class="top_td">
                            <th width="80px">
                                序号
                            </th>
                            <th width="123px">
                                性别
                            </th>
                            <th width="102px">
                                年龄
                            </th>
                            <th width="306px">
                                劳动级别
                            </th>
                            <th width="155px">
                                人数
                            </th>
                            <th>
                                删除
                            </th>
                        </tr>
                    </thead>
                    <tbody id="Tbody_Pic_Group">
                    </tbody>
                </table>
                <div class="button_add_pos">
                    <a href="#" class="img_pos">
                        <img src="../../Images/jqjs.gif" id="AVG_But" onclick="AVG_But_Click()" /></a>
                    <a href="javascript:void(0);" class="add_botton">
                        <img id="AddInfo" src="../../Images/add.gif" /></a>
                </div>
                <div style="clear: both; height: 50px;">
                </div>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="color_left_table"
                    style="display: none;">
                    <tr>
                        <td class="color_width795">
                            <div class="bgcolor_div">
                                <strong>男</strong><span class="nianling">平均年龄<asp:TextBox runat="server" ID="Txt_Pic_Manold"
                                    Enabled="false" CssClass="input_bg" Style="width: 40px; height: 20px; line-height: 20px;"></asp:TextBox>
                                    岁<input type="text" name="" disabled="disabled" class="input_bg" style="width: 40px;
                                        height: 20px; line-height: 20px;" />月</span> <span class="renshu">人数<asp:TextBox
                                            runat="server" ID="Txt_Pic_ManMunber" Enabled="false" CssClass="input_bg" Style="width: 120px;
                                            height: 20px; line-height: 20px;" /></span></div>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="color_width795">
                            <div class="bgcolor_div">
                                <strong>女</strong><span class="nianling">平均年龄<asp:TextBox runat="server" ID="Txt_Pic_Winole"
                                    Enabled="false" CssClass="input_bg" Style="width: 40px; height: 20px; line-height: 20px;" />
                                    岁<input type="text" name="" class="input_bg" disabled="disabled" style="width: 40px;
                                        height: 20px; line-height: 20px;" />月</span><span class="renshu">人数<asp:TextBox runat="server"
                                            ID="Txt_Pic_WinMunber" CssClass="input_bg" Enabled="false" Style="width: 120px;
                                            height: 20px; line-height: 20px;" /></span></div>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="table_box02_03">
                <asp:Button ID="But_Pic_Next" Enabled="false" runat="server" OnClick="Group_Next_But_Click"
                    Style="display: none" />
                <a style="cursor:pointer;" onclick="Group_Next_But_Click_Js()">下一步</a>
            </div>
        </div>
        <div class="table_box02" id="div2_2" style="display: none">
            <div class="div_0207 left_width400" style="height: 550px; width: 100%;">
                <h1><img src="../../Images/cp_h1_03.gif"/>配餐个人基本信息</h1>
                <table border="0" cellspacing="5" cellpadding="0" align="center" class="grxx_table">
                    <tr>
                        <td width="100" align="right">配餐名称：</td>
                        <td colspan="2" align="left" valign="middle"><asp:TextBox ID="TbSingeName" runat="server" Style="width: 155px; height:22px; line-height:22px;" CssClass="inputtxt input_bg" ></asp:TextBox></td>
                    </tr>                            
                    <tr>
                        <td width="100" align="right">配餐群体类别：</td>
                        <td colspan="2" align="left" valign="middle" width="500">
                            <asp:RadioButtonList ID="Rad_Cgrouptype" runat="server" GroupName="renyuan" RepeatDirection="Horizontal">
                            </asp:RadioButtonList>
                            <asp:DropDownList runat="server" ID="dr_r_type" CssClass="select_input_bg">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td width="100" align="right">性别：</td>
                        <td align="left" colspan="2">
                            <asp:RadioButtonList ID="Drop_Sex" runat="server" RepeatDirection="Horizontal" style="width:100px;"></asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td width="100" align="right">年龄阶段：</td>
                        <td align="left" colspan="2"><asp:DropDownList ID="Drop_Age" runat="server" CssClass="select_input_bg"></asp:DropDownList></td>  
                    </tr>
                    <tr>
                        <td width="100" align="right">身高(cm)：</td>
                        <td align="left" valign="middle" width="100"><asp:TextBox Style="width: 50px; height:22px; line-height:22px;" ID="tb_hegth" runat="server" CssClass="inputtxt input_bg"></asp:TextBox></td>
                        <td align="left" width="400">体重(kg)：<asp:TextBox ID="tb_weight" runat="server" Style="width: 155px; height:22px; line-height:22px;" CssClass="inputtxt input_bg"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td width="100" align="right">劳动级别：</td>
                        <td colspan="2" align="left" valign="middle">
                            <asp:RadioButtonList ID="rd_laodong" runat="server" RepeatDirection="Horizontal"></asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td width="100" align="right">膳食类型：</td>
                        <td colspan="2" align="left" valign="middle">
                            <asp:DropDownList ID="dr_shanshi" runat="server" CssClass="select_input_bg">
                                <asp:ListItem Text="正常膳食" Value="0"></asp:ListItem>
                                <asp:ListItem Text="糖尿病人" Value="1"></asp:ListItem>
                                <asp:ListItem Text="高血脂病人" Value="2"></asp:ListItem>
                                <asp:ListItem Text="高血压病人" Value="3"></asp:ListItem>
                                <asp:ListItem Text="痛风患者" Value="4"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr style="display:none;">
                        <td width="100" align="right">配餐餐别：</td>
                        <td colspan="2" align="left" valign="middle">
                            <asp:CheckBoxList ID="ckcanbie" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Text="早餐" Selected="True" Value=""></asp:ListItem>
                                <asp:ListItem Text="中餐" Selected="True" Value=""></asp:ListItem>
                                <asp:ListItem Text="晚餐" Selected="True" Value=""></asp:ListItem>
                                <asp:ListItem Text="夜餐" Selected="True" Value=""></asp:ListItem>
                            </asp:CheckBoxList>
                        </td>
                    </tr>
                    <tr>
                        <td width="100" align="right">能量脂肪调控：</td><td colspan="2"></td>
                    </tr>
                    <tr>
                        <td width="100" align="right">BMI(体质指数)：</td>
                        <td><label id='BMI'></label>&nbsp;</td>
                        <td>体质情况：<label id='tizhi'></label></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td colspan="2" align="left">
                            <asp:RadioButtonList runat="server" ID="rb_biaozhun" RepeatDirection="Horizontal">
                                <asp:ListItem Text="根据标准体重计算" Value="0" Selected="True"></asp:ListItem>
                                <asp:ListItem Text="根据个人体重计算" Value="1"></asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <input type="button" id="GeRenSRL" value="查看摄入量" onclick="GerenSRL_Click()" class="input_btn_a" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <div class="table_box02_03">
                                <asp:Button ID="Button1" runat="server" OnClick="Sigen_Next_But_Click" Style="display: none" />
                                <a style="cursor:pointer;" onclick="Sigen_Next_But_Click_Js()" href="#">下一步</a>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <div class="footer">
        <strong>中海油能源发展配餐服务公司渤海自营油田作业公司&nbsp;&nbsp;版权所有@CopyRight 2012</strong><span>技术支持：北京天择嘉业科技有限公司</span>
    </div>
    </form>
    <!--遮罩层-->
    <div id="divmain2" class="bg">
    </div>
    <!--弹出层-->
    <div id="divup2" class="center_div" style="padding: 0px; margin-top: -150px;">
        <table style="width: 100%;">
            <tr width="100%">
                <td>
                    <div class="div_0207 left_width400" style="width: 100%; height: 400px; overflow-y: auto;">
                        <h1>
                            <img src="../../Images/cp_h1_03.gif" />营养元素推荐量列表</h1>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="swxx_table">
                            <thead>
                                <tr>
                                    <td style="width: 120px;" class="table_title">营养元素</td>
                                    <td class="table_title">推荐量</td>
                                    <td class="table_title">早餐</td>
                                    <td class="table_title">中餐</td>
                                    <td class="table_title">晚餐</td>
                                    <%--<td class="table_title">夜餐</td>--%>
                                </tr>
                            </thead>
                            <tbody id="NutritionalList">
                            </tbody>
                        </table>
                    </div>
                </td>
            </tr>
            <tr align="center" width="100%">
                <td align="center" class="close_imgbtn">
                    <a href="#" class="closebtn" onclick='divhidel("divmain2","divup2")'>关　闭</a><br />
                </td>
            </tr>
        </table>
    </div>
</body>
</html>
